package ro.prjmanager.web.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * This annotation must be used when there is no specified any of
 * Create,View,Delete,Edit annotation
 *
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface DefaultTargetMethod {
    //the target method to be executed
    String target();
    //the resource to be redirected to
    String resource();
    // the resource to be redirected in case of getting an InvocationTargetException
    String onFaildReturn() default "";
}
